<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/app/include/init_app.jsp" %>
<%@ page import="com.qbooks.board.*" %>
<%
	String word_id			= StringUtil.nvl(request.getParameter("word_id"));
	String curr_page 		= StringUtil.nvl(request.getParameter("curr_page"), "1");

	String search_url		= "";

	
	HashList wordInfo		= (HashList)request.getAttribute("wordInfo");	//, boardDAO.selectBoardInfo(infos));
	HashList commentList 	= (HashList)request.getAttribute("commentList");	//boardDAO.selectWordList(infos);
	
	
	String board_id			= wordInfo.get("board_id",0);
	
	//쓰기권한
	boolean bWritable		= true;
	if ("A".equals(wordInfo.get("write_auth",0))) {	//관리자
		//bWritable = isAdmin;
	} else if ("M".equals(wordInfo.get("write_auth",0))) {	//회원
		bWritable = isLogin;
	}

%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
	<title><%= HOME_NAME %></title>
	<link rel="stylesheet" href="../../css/mobile.app.css"/>
	<script src="../../js/jquery-1.7.2.min.js"></script>
	
	
	<script type="text/javascript">
	
	
	</script>
	
</head>
<body>
    <div>
    
        <div id="word_info">
        
        	<h3><%= wordInfo.get("subject",0) %></h3>
        	<p><%= wordInfo.get("init_date",0) %> 조회 <%= wordInfo.get("count",0) %></p>
			
			<div>
<%		if ("Y".equals(wordInfo.get("html_yn",0))) { %>
			<%= wordInfo.get("content",0) %>
<%		} else { %>
			<%= StringUtil.toHTML(wordInfo.get("content",0)) %>
<%		} %>
			</div>
			
			<div class="buttons">
				<a href="./wordList.app?board_id=<%=board_id %>" class="btn" title="목록으로" >목록으로</a>
			</div>
        </div>
        	

  	</div>
</body>
</html>
